From e426310aff69e9e667091c63346cf81b0cfb0767 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sat, 30 May 2009 10:24:21 +0100 Subject: [PATCH] passthrough: Fix test_and_clear_bit() caller to clear bitmap, not bitmap pointer Latent bug triggered by '19650: eliminate hard-coded NR_IRQS' Signed-off-by: Keir Fraser --- xen/drivers/passthrough/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/io.c b/xen/drivers/passthrough/io.c index ed3bed57ec..61060db8e3 100644 --- a/xen/drivers/passthrough/io.c +++ b/xen/drivers/passthrough/io.c @@ -444,7 +444,7 @@ void hvm_dirq_assist(struct vcpu *v) irq < d->nr_pirqs; irq = find_next_bit(hvm_irq_dpci->dirq_mask, d->nr_pirqs, irq + 1) ) { - if ( !test_and_clear_bit(irq, &hvm_irq_dpci->dirq_mask) ) + if ( !test_and_clear_bit(irq, hvm_irq_dpci->dirq_mask) ) continue; spin_lock(&d->event_lock); -- 2.30.2